var htmlLayoutKit=function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/evrone-jelly/",n(n.s=10)}([function(t,e){t.exports=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e){function n(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}t.exports=function(t,e,i){return e&&n(t.prototype,e),i&&n(t,i),t}},function(t,e){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}},function(t,e){t.exports='<canvas class="canvas" height="40" width="180">Canvas не поддерживается. :-(</canvas>\n<svg width="220" height="80" xmlns="http://www.w3.org/2000/svg" fill="none" class="svg">\n <path clip-rule="evenodd" fill-rule="evenodd" fill="#FC0000" d="m123.275,54.601c-6.957,0 -12.15,-5.194 -12.15,-11.661l0,-0.098c0,-6.467 5.193,-11.758 12.248,-11.758c6.957,0 12.15,5.193 12.15,11.66l0,0.098c0,6.467 -5.291,11.759 -12.248,11.759zm0,-5.488c3.626,0 5.879,-2.841 5.879,-6.173l0,-0.098c0,-3.331 -2.449,-6.271 -5.977,-6.271c-3.625,0 -5.879,2.842 -5.879,6.173l0,0.098c0.098,3.332 2.45,6.271 5.977,6.271z"/>\n <path clip-rule="evenodd" fill-rule="evenodd" fill="#000000" d="m20,59.499l18.617,-38.998l5.39,0l-18.618,38.998l-5.389,0z"/>\n <path clip-rule="evenodd" fill-rule="evenodd" fill="#000000" d="m48.808,44.998c0.588,2.939 2.646,4.409 5.487,4.409c2.156,0 3.724,-0.686 5.487,-2.352l3.626,3.234c-2.058,2.743 -5.095,4.311 -9.211,4.311c-6.761,0 -11.758,-4.801 -11.758,-11.66l0,-0.098c0,-6.467 4.605,-11.759 11.17,-11.759c7.545,0 10.975,5.88 10.975,12.249c0,0.49 0,1.078 -0.098,1.666l-15.678,0m-0.098,-3.92l9.603,0c-0.392,-2.842 -2.058,-4.801 -4.802,-4.801c-2.547,0 -4.311,1.861 -4.801,4.801z"/>\n <path clip-rule="evenodd" fill-rule="evenodd" fill="#000000" d="m75.656,54.306l5.781,0l8.917,-22.733l-6.663,0l-5.095,15.09l-5.096,-15.09l-6.761,0l8.917,22.733z"/>\n <path clip-rule="evenodd" fill-rule="evenodd" fill="#000000" d="m101.034,54.11l0,-8.329c0,-5.389 2.646,-7.936 6.859,-7.936l0.294,0l0,-6.664c-3.821,-0.196 -5.879,1.862 -7.251,4.998l0,-4.508l-6.369,0l0,22.439l6.467,0z"/>\n <path clip-rule="evenodd" fill-rule="evenodd" fill="#000000" d="m140.621,54.11l6.369,0l0,-12.64c0,-3.038 1.567,-4.605 4.017,-4.605c2.45,0 3.92,1.567 3.92,4.605l0,12.64l6.369,0l0,-14.6c0,-5.193 -2.842,-8.427 -7.643,-8.427c-3.234,0 -5.096,1.764 -6.663,3.626l0,-3.234l-6.369,0l0,22.635z"/>\n <path clip-rule="evenodd" fill-rule="evenodd" fill="#000000" d="m172.76,44.998c0.588,2.939 2.646,4.409 5.487,4.409c2.156,0 3.724,-0.686 5.487,-2.352l3.626,3.234c-2.156,2.743 -5.193,4.311 -9.211,4.311c-6.761,0 -11.758,-4.801 -11.758,-11.66l0,-0.098c0,-6.467 4.605,-11.759 11.17,-11.759c7.545,0 10.975,5.88 10.975,12.249c0,0.49 0,1.078 -0.098,1.666l-15.678,0m-0.196,-3.92l9.603,0c-0.392,-2.842 -2.058,-4.801 -4.802,-4.801c-2.547,0 -4.213,1.861 -4.801,4.801z"/>\n <path clip-rule="evenodd" fill-rule="evenodd" fill="#000000" d="m193.141,54.11l6.859,0l0,-6.761l-6.859,0l0,6.761z"/>\n</svg>\n\n\n\n\n'},function(t,e,n){var i=n(6),r=n(7),o=n(8),s=n(9);t.exports=function(t){return i(t)||r(t)||o(t)||s()}},function(t,e,n){var i=n(3);t.exports=function(t){if(Array.isArray(t))return i(t)}},function(t,e){t.exports=function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}},function(t,e,n){var i=n(3);t.exports=function(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}},function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(t,e,n){"use strict";n.r(e);var i=n(1),r=n.n(i),o=n(2),s=n.n(o),c=n(4),l=n.n(c),a=n(0),h=n.n(a);function u(t,e,n){t.removeEventListener(e,n),t.addEventListener(e,n)}var f=n(5),v=n.n(f),d=function(){function t(e){r()(this,t),this.init(e)}return s()(t,[{key:"init",value:function(t){var e=t.friction,n=void 0===e?.1:e,i=t.r,r=void 0===i?2:i,o=t.tension,s=void 0===o?.9:o,c=t.x,l=void 0===c?0:c,a=t.y,h=void 0===a?0:a;this.friction=n,this.r=r,this.ox=l,this.oy=h,this.x=l,this.y=h,this.vx=0,this.vy=0,this.tension=s}},{key:"proccess",value:function(t){this.time=+new Date,this.react(t),this.prepare(),this.pos()}},{key:"react",value:function(t){var e=t.key,n=void 0===e?1:e,i=t.r,r=t.scale,o=t.x,s=t.y,c=this.x-o,l=this.y-s,a=Math.sqrt(c*c+l*l),h=i+this.r;if(a<h){var u=Math.atan2(l,c);this.vx+=o+Math.cos(u)*h-this.x,this.vy+=s+Math.sin(u)*h-this.y}var f=Math.round(r*(this.time/2e3+5*n));this.vx+=Math.cos(f),this.vy+=Math.sin(f)}},{key:"prepare",value:function(){var t=this.x-this.ox,e=this.y-this.oy;this.vx-=t*this.tension,this.vy-=e*this.tension,this.vx*=this.friction,this.vy*=this.friction}},{key:"pos",value:function(){this.x+=this.vx,this.y+=this.vy}},{key:"render",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#ff4444";t.save(),t.beginPath(),t.arc(this.x,this.y,this.r,0,2*Math.PI),t.fillStyle=e,t.fill(),t.closePath(),t.restore()}}]),t}(),y=function(){function t(e){var n=this;r()(this,t),h()(this,"handleMove",(function(t){t.preventDefault();var e=t.clientX||t.targetTouches[0].clientX,i=t.clientY||t.targetTouches[0].clientY;n.x=e-n.rect.left,n.y=i-n.rect.top})),this.canvas=e,this.rect=this.canvas.getBoundingClientRect(),this.x=0,this.y=0,this.bind()}return s()(t,[{key:"bind",value:function(){u(this.canvas,"mousemove",this.handleMove),u(this.canvas,"touchmove",this.handleMove)}}]),t}();function p(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function g(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?p(Object(n),!0).forEach((function(e){h()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var b=function(){function t(e,n){var i=this;r()(this,t),h()(this,"render",(function(){i.requestId=window.requestAnimationFrame(i.render),i.ctx.clearRect(0,0,i.rect.width,i.rect.height),i.ctx.fillStyle="#ffffff",i.ctx.fillRect(0,0,i.rect.width,i.rect.height),i.pathList.map(i.renderObject)})),h()(this,"objectInit",(function(t){return{color:t.color,list:t.list.map(i.dotInit)}})),h()(this,"dotInit",(function(t){return new d(g(g({},t),{},{r:5}))})),h()(this,"dotDraw",(function(t){return function(e,n,r){var o=r.length;e.proccess({key:n/o,r:20*i.scale,scale:i.scale,x:i.mouse.x,y:i.mouse.y}),e.render(i.ctx,t)}})),h()(this,"lineDraw",(function(t,e,n){var r=n.length;if(i.dot1){t.proccess({key:e/r,r:20*i.scale,scale:i.scale,x:i.mouse.x,y:i.mouse.y});var o=.5*(i.dot1.x+t.x),s=.5*(i.dot1.y+t.y);i.ctx.quadraticCurveTo(i.dot1.x,i.dot1.y,o,s)}i.dot1=t})),h()(this,"renderObject",(function(t){var e=t.color,n=t.list;i.ctx.beginPath(),i.dot1=n[n.length-1],n.forEach(i.lineDraw),i.lineDraw(n[0],0,n),i.ctx.closePath(),i.ctx.fillStyle=e,i.ctx.fill()})),h()(this,"getPoints",(function(t){return function(e){var n=e.getTotalLength()/t;return{color:e.getAttribute("fill"),list:Array(t).fill(0).map((function(t,r){var o=e.getPointAtLength((r+1)*n);return{x:o.x/i.svgSize.width*i.rect.width,y:o.y/i.svgSize.height*i.rect.height}}))}}})),this.scale=1,this.init(e,n),this.render()}return s()(t,[{key:"setSize",value:function(t,e){this.scale=Math.min(t/this.svgSize.width,e/this.svgSize.height),this.canvas.width=this.scale*this.svgSize.width,this.canvas.height=this.scale*this.svgSize.height,this.init(this.canvas,this.svg)}},{key:"init",value:function(t,e){this.svg=e,this.svgSize={height:e.height.baseVal.value,width:e.width.baseVal.value},this.canvas=t,this.rect=this.canvas.getBoundingClientRect();var n=v()(e.querySelectorAll("path")).map(this.getPoints(76));this.ctx=this.canvas.getContext("2d"),this.mouse=new y(this.canvas),this.pathList=n.map(this.objectInit)}},{key:"destroy",value:function(){window.cancelAnimationFrame(this.requestId)}}]),t}(),m=function(){function t(e){var n=this;r()(this,t),h()(this,"handleResize",(function(t){var e=t.target,i=e.innerHeight,r=e.innerWidth;n.canvas.setSize(r,i)})),this.root=e,this.init(),this.bind()}return s()(t,[{key:"init",value:function(){var t=this.root.querySelector(".canvas"),e=this.root.querySelector(".svg");this.canvas=new b(t,e)}},{key:"bind",value:function(){u(window,"resize",this.handleResize),window.dispatchEvent(new Event("resize"))}},{key:"destroy",value:function(){this.canvas.destroy()}}]),t}(),x=function(){function t(e){r()(this,t),e.innerHTML=l.a,this.jelly=new m(e)}return s()(t,[{key:"destroy",value:function(){this.jelly.destroy()}}]),t}(),w=document.body;w&&new x(w),"serviceWorker"in navigator&&window.addEventListener("load",(function(){navigator.serviceWorker.register("/evrone-jelly/sw.js").catch((function(t){console.error("SW registration failed: ",t)}))}))}]);